import api from '../utils/index'

// 头部的数据
export const getHeader = () => api.get(`/home/category/head`)
// 商品分类一级数据
export const getClassify = () => api.get(`/category/top`)
// 请求轮播图数据
export const homeBannerObj = () => api.get(`/home/banner`)
// 新鲜好物
export const homeNewObj = () => api.get(`/home/new`)
// 人气推荐的数据
export const moodsList = () => api.get(`home/hot`)
// 热门品牌
export const hotBoard = () => api.get(`/home/brand?limit=10`)
// 主页的产品居家
export const product = () => api.get(`/home/goods`)
// 最新专题
export const subject = () => api.get(`/home/special`)
// 各个分类的推荐商品
export const categoryShop = (id) => api.get(`/category?id=${id}`)
// headerNav 的2级分类数据
export const GetSub = (id) => api.get(`/category/sub/filter?id=${id}`)